Skip to content

nvmeof: adding namespace masking calls#6241

Merged
mergify[bot] merged 1 commit into
ceph:develfrom
gadididi:nvmeof/add_ns_masking
Apr 23, 2026
Merged

nvmeof: adding namespace masking calls#6241
mergify[bot] merged 1 commit into
ceph:develfrom
gadididi:nvmeof/add_ns_masking

Conversation

@gadididi
Copy link
Copy Markdown
Contributor

added 3 grpc calls:

  1. NameSpaceAddHost() - which is adding hostNQN for specific namespace (by given ns-id).
  2. NameSpaceRemoveHost() - which is removing hostNQN for specific namespace (by given ns-id).
  3. NameSpaceChangeAutoVisibility() - for adding host into specific namespace the namespace should be first non-auto-visible. So this called is added too.

This PR is a preparatory step for a future PR that will introduce using of namespace masking feature for external clients.
more details about the external client feature is here: #6240

Checklist:

  • Commit Message Formatting: Commit titles and messages follow
    guidelines in the developer
    guide
    .
  • Reviewed the developer guide on Submitting a Pull
    Request
  • Pending release
    notes

    updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

@gadididi gadididi requested review from Copilot and nixpanic April 20, 2026 13:16
@gadididi gadididi self-assigned this Apr 20, 2026
@gadididi gadididi added the component/nvme-of Issues and PRs related to NVMe-oF. label Apr 20, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the NVMe-oF gateway gRPC client wrapper (GatewayRpcClient) with namespace-masking helpers to manage per-namespace host access and namespace auto-visibility, as preparation for future external-client support.

Changes:

  • Add NameSpaceAddHost() to grant a host NQN access to a specific namespace.
  • Add NameSpaceRemoveHost() to revoke a host NQN access from a specific namespace.
  • Add NameSpaceChangeAutoVisibility() to toggle namespace auto-visible behavior.

Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go
Comment thread internal/nvmeof/nvmeof.go
Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go Outdated
@gadididi gadididi force-pushed the nvmeof/add_ns_masking branch 2 times, most recently from 0560f96 to 6fe19f2 Compare April 21, 2026 07:04
@gadididi gadididi requested a review from Copilot April 21, 2026 07:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go Outdated
@gadididi gadididi force-pushed the nvmeof/add_ns_masking branch from 6fe19f2 to f884b08 Compare April 21, 2026 07:24
@gadididi gadididi requested review from a team and Copilot April 21, 2026 07:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread internal/nvmeof/nvmeof.go Outdated
Comment thread internal/nvmeof/nvmeof.go
Comment thread internal/nvmeof/nvmeof.go
@gadididi gadididi force-pushed the nvmeof/add_ns_masking branch from f884b08 to 90b2299 Compare April 21, 2026 08:17
Copy link
Copy Markdown
Member

@nixpanic nixpanic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. There is no use of the new functions yet, so no need for e2e testing either.

@nixpanic nixpanic requested a review from a team April 22, 2026 16:16
@nixpanic nixpanic added the ci/skip/e2e skip running e2e CI jobs label Apr 22, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 23, 2026

Deprecation notice: This pull request comes from a fork and was queued with update_method=rebase and update_bot_account impersonation. This capability will be removed on July 1, 2026. After this date, the merge queue will no longer be able to rebase fork pull requests with this configuration. To avoid disruption, switch to update_method=merge in your queue rule.

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 23, 2026

Merge Queue Status

  • Entered queue2026-04-23 09:42 UTC · Rule: default
  • Checks passed · in-place
  • Merged2026-04-23 10:19 UTC · at 54dfc2ffc7f48d5a4938df0b4a18ce5a04ebbc37 · rebase

This pull request spent 37 minutes 11 seconds in the queue, including 36 minutes 52 seconds running CI.

Required conditions to merge

added 3 grpc calls:
1. `NameSpaceAddHost()` - which is adding hostNQN for specific namespace
   (by given ns-id).
2. `NameSpaceRemoveHost()` - which is removing hostNQN for specific namespace
   (by given ns-id).
3. `NameSpaceChangeAutoVisibility()` - for adding host into specific namespace
   the namespace should be first non-auto-visible. So this called is added too.

Signed-off-by: gadi-didi <gadi.didi@ibm.com>
@ceph-csi-bot ceph-csi-bot force-pushed the nvmeof/add_ns_masking branch from 90b2299 to 54dfc2f Compare April 23, 2026 09:42
@mergify mergify Bot added the queued label Apr 23, 2026
@gadididi
Copy link
Copy Markdown
Contributor Author

@mergify rebase

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 23, 2026

rebase

☑️ Nothing to do, the required conditions are not met

Details
  • queue-position = -1 [📌 rebase requirement]
  • any of:
    • #commits-behind > 0 [📌 rebase requirement]
    • -linear-history [📌 rebase requirement]
  • -closed [📌 rebase requirement]
  • -conflict [📌 rebase requirement]

@mergify mergify Bot merged commit 48a06f4 into ceph:devel Apr 23, 2026
20 checks passed
@mergify mergify Bot removed the queued label Apr 23, 2026
@gadididi gadididi deleted the nvmeof/add_ns_masking branch April 23, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/skip/e2e skip running e2e CI jobs component/nvme-of Issues and PRs related to NVMe-oF.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants